<template>
	<view>
		<view class="icon">
			<image :src='this.commonImg() + "success.jpg"'></image>
		</view>
		<view class="tis">
			提交成功
		</view>
		<view class="pay-amount">
			<view>预约回收当天</view>
			<view>快递小哥上门前会与您电话联系！</view>
		</view>
		<view class="back">
			<view class="btn" @tap="toUser">返回首页</view>
			<view class="btn" @tap="toOrder">查看订单</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				amount: 0
			};
		},
		onLoad(e) {
			this.amount = parseFloat(e.amount).toFixed(2);
		},
		methods: {
			toUser() {
				uni.switchTab({
					url: '/pages/tabBar/home/home'
				});
			},
			toOrder() {
				uni.navigateTo({
					url: '/pages/user/order/index?status=0'
				});
			},
		},
	}
</script>

<style lang="scss">
	page {
		background: #fff;
	}

	.icon {
		width: 100%;
		margin-top: 100rpx;
		text-align: center;

		image {
			width: 300rpx;
			height: 272rpx;
		}
	}

	.tis {
		width: 100%;
		margin-top: 20upx;
		font-size: 46upx;
		font-weight: bold;
		text-align: center;
	}

	.pay-amount {
		width: 100%;
		margin-top: 20rpx;
		font-size: 30rpx;
		color: #999;
		text-align: center;
		line-height: 1.5;
	}

	.back {
		display: flex;
		justify-content: center;
		margin-top: 80rpx;

		.btn {
			padding: 0 60rpx;
			height: 80rpx;
			line-height: 80rpx;
			border: solid 1px #dddddd;
			color: #333;
			align-items: center;
			border-radius: 40rpx;
			font-size: 34rpx;
			margin: 0px 30rpx;
		}
	}
</style>